<?php

namespace app\admin\controller;

use  app\common\controller\DBase;
use  think\facade\Request;
use  app\admin\logic\AdminLogic;
use  think\App;
class Admin extends DBase
{

    protected $adminLogic = null;
    public function __construct(App $app,AdminLogic $adminLogic)
    {
        parent::__construct($app);
        $this->adminLogic = $adminLogic;
    }
     /**
      * @desc 登录发送短信验证码
      * @author  xx
      * @date 2024-02-29
      */
     public function sendSms(){
         $data    = $this->request->post();
         return $this->adminLogic->sendSms($data);
     }

     /**
      * @desc 获取短信后登录平台
      * @author xx
      * @date 2024-03-01
      */
     public function telLogin(){
         $data   = $this->request->post();
         return $this->adminLogic->telLogin($data);
     }

     
     /**
      * @desc 登出接口
      * @author xx
      * @date 2024-03-05
      */
    public function loginOut()
    {

        $data   = $this->request->post();
        return $this->adminLogic->loginOut($data);

    }











}